// agent-ui/src/api/rating/ratingApi.js

import axios from 'axios';

const ratingApi = {
    // 获取用户的所有评分
    getUserRatings(userId) {
        return axios.get(`http://localhost:9527/ratings/user/${userId}`);
    },

    // 删除评分
    deleteRating(ratingId) {
        return axios.delete(`http://localhost:9527/ratings/${ratingId}`);
    },

    // 添加评分
    addRating(rating) {
        return axios.post('http://localhost:9527/ratings', rating);
    }
};

export default ratingApi; 